package com.myhome.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.myhome.bean.User;
import com.myhome.service.UserService;

@Service
public class UserServiceImpl implements UserService {

    /*@Autowired
    private UserMapper userDao;
*/
    public List<User> findAll() {
        try {
            System.out.println("..........findAll.....impl");
            List<User> users = new ArrayList<>();
            return users;
        } catch (Exception ex) {
            ex.printStackTrace();
            return null;
        }
    }

    @Override
    public void catTestMethod() {
        System.out.println("..........catTestMethod.....impl");
    }

    public int insertUser(User user) {
        System.out.println("..........insertUser.....impl");
        int res = 1;
        return res;
    }
}
